<template>

  <!-- 全局提示框 -->
  <div v-show="visible" class="dialog-tips dialog-center">
    <div>{{message}}</div>
  </div>

</template>
<script>
export default {
  data () {
    return {
      visible: false,
      message: ''
    }
  }
}
</script>
<style lang="scss">
  .dialog-tips {
    position: fixed;
    z-index: 100;
    min-width: 220px;
    padding: 20px 22px;
    white-space: nowrap;
    background-color: rgba(0,0,0,.5);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    box-shadow: 0px 8px 15px 0 rgba(0, 0, 0, 0.1);
    text-align: center;
    .dialog-tips-icon {
      width: 54px;
      height: 54px;
      display: inline-block;
      margin-bottom: 13px;
    }
  }
  .dialog-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
  }

</style>
